import os

from pathlib import Path
import subprocess

help_doc_md_filepath = Path(__file__).parent / 'help_document/readme.md'


def main():
    try:
        subprocess.run(['cat',  help_doc_md_filepath], check=True)
    except subprocess.CalledProcessError:
        print("Error: cat 出错 ")
        #return {'success': False, 'error': 'Failed to convert .doc to .docx'}
    print(f'\n\n帮助文件的地址 {help_doc_md_filepath} ')
    #
    print(f'\n\n open -a   /Applications/Typora.app  {help_doc_md_filepath} \n\n')

if __name__ == "__main__":
    main()

"""
使用示例：
# 使用默认配置文件
python3 -m document2llm.help



"""






#
